package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.qijian.maindata.domain.BomCraftFile;
import com.qijian.maindata.domain.query.BomCraftFileQuery;
import com.qijian.maindata.domain.vo.BomCraftFileHisVo;
import com.qijian.maindata.domain.vo.BomCraftFileVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author qijian
 * @date 2023-11-15
 */
public interface BomCraftFileMapper extends BaseMapper<BomCraftFile> {

    @Select("select count(0) from main_bom_craft_file WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();


    Page<BomCraftFileVo> listBomCraftFile(Page<BomCraftFile> page, @Param(Constants.WRAPPER) Wrapper<BomCraftFileQuery> queryWrapper);


    Page<BomCraftFileHisVo> page4FileOperHisVo(Page<BomCraftFile> page, @Param("query") BomCraftFileQuery query);
}
